package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByChannel;
import com.baseweb.webadmin.core.model.pojo.ByChannelKeyword;
import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import org.joda.time.DateTime;

public class ByChannelKeyWordBvo extends ByChannelKeyword{

    private ByChannel parentChannel;

    public static ByChannelKeyWordBvo copyFrom(ByChannelKeyword byChannelKeyword, ByChannel byChannel) {
        ByChannelKeyWordBvo bvo = new ByChannelKeyWordBvo();
        bvo.setId(byChannelKeyword.getId());
        bvo.setPositionId(byChannelKeyword.getPositionId());
        bvo.setParentId(byChannelKeyword.getParentId());
        bvo.setSort(byChannelKeyword.getSort());
        bvo.setName(byChannelKeyword.getName());
        bvo.setStatus(byChannelKeyword.getStatus());
        bvo.setCreateTime(byChannelKeyword.getCreateTime());
        bvo.setUpdateTime(byChannelKeyword.getUpdateTime());
        bvo.setDescn(byChannelKeyword.getDescn());
        bvo.setUrl(byChannelKeyword.getUrl());
        bvo.setParentChannel(byChannel);
        return bvo;
    }

    public ByChannel getParentChannel() {
        return parentChannel;
    }

    public void setParentChannel(ByChannel parentChannel) {
        this.parentChannel = parentChannel;
    }
}
